<?php
	class New_PO_MODEL extends CI_Model {
		$table = array( 0 => "po_vers1",
			1 => "po_detail_vers1"
			);
		function getPO_Acc($intid_cabang){
			$barang = array();
			
			$select = "select pod.*, b.strnama
				from ".$this->table[0]." po inner join ".$this->table[1]." pod on pod.no_po = pod.no_po inner join barang b on b.intid_barang = pod.intid_barang
				where po.no_spkb !='' and po_sj and po.intid_cabang = '$intid_cabang' order by po.date asc";
			$query = $this->db->query($select);
			foreach($query->result() as $row){
				
			}
		}
		
	}
?>